package com.imut.hcdp.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.imut.hcdp.mapper.HcdpTrainTypeMapper;
import com.imut.hcdp.domain.HcdpTrainType;
import com.imut.hcdp.service.IHcdpTrainTypeService;


@Service
public class HcdpTrainTypeServiceImpl implements IHcdpTrainTypeService
{
    @Autowired
    private HcdpTrainTypeMapper hcdpTrainTypeMapper;


    @Override
    public HcdpTrainType selectHcdpTrainTypeById(Long id)
    {
        return hcdpTrainTypeMapper.selectHcdpTrainTypeById(id);
    }


    @Override
    public List<HcdpTrainType> selectHcdpTrainTypeList(HcdpTrainType hcdpTrainType)
    {
        return hcdpTrainTypeMapper.selectHcdpTrainTypeList(hcdpTrainType);
    }


    @Override
    public int insertHcdpTrainType(HcdpTrainType hcdpTrainType)
    {
        return hcdpTrainTypeMapper.insertHcdpTrainType(hcdpTrainType);
    }


    @Override
    public int updateHcdpTrainType(HcdpTrainType hcdpTrainType)
    {
        return hcdpTrainTypeMapper.updateHcdpTrainType(hcdpTrainType);
    }


    @Override
    public int deleteHcdpTrainTypeByIds(Long[] ids)
    {
        return hcdpTrainTypeMapper.deleteHcdpTrainTypeByIds(ids);
    }


    @Override
    public int deleteHcdpTrainTypeById(Long id)
    {
        return hcdpTrainTypeMapper.deleteHcdpTrainTypeById(id);
    }
}
